package com.djmw.mouse.web.helper;

import javax.servlet.ServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.djmw.mouse.service.constants.Constants;

/**
 * 选择地区公用弹出窗口。
 * 
 * @author leo
 */

@Controller
@RequestMapping(value = "/helper/selectAreaModal")
public class SelectAreaController {

	@RequestMapping(value = "")
	public String view(Model model, ServletRequest request) {
		model.addAttribute("provinces", Constants.PROVINCES);
		model.addAttribute("cities", Constants.getCityJson());
		return "/helper/select-area-modal";
	}
}
